import axios from 'axios';
import {ajax,base} from './config'


// 工器具
// //获取类型树形菜单数据
export const findToolTypeList = params => { return axios.post(`${base}api/tool/findToolTypeList.do?`, params); };
//新增二维码中的添加工具
export const addTool = params => { return ajax.postData({url:`${base}api/toolX/addTool.do?`, params}); };
//获取表格数据
export const getToolsList = params => { return ajax.getMinData({url:`${base}api/toolX/getToolsList.do?`, params}); };
//下载二维码模板 no-use
export const downloadModel = params => { return axios.post(`${base}api/toolX/downloadModel.do?`, params); };
//获取操作日志列表
export const getToolsLogList  = params => { return ajax.getMinData({url:`${base}api/qrfun/getToolsLogList.do`, params:params}) };
//获取操作日志详情
export const getToolsLogDetail  = params => { return ajax.getMinData({url:`${base}api/toolX/getToolsLogDetail.do`, params:params}) };
//编辑材料接口
export const updateTool  = params =>{ return axios.post(`${base}api/toolX/updateTool.do?`, params); };
//删除材料接口
export const removeTool  = params =>{ return ajax.postData({url:`${base}api/qrfun/removeTool.do?`, params}); };
//添加选择列表条目列表 no-use
export const exportData  = params =>{ return axios.post(`${base}api/toolX/exportData.do?`, params); };
//批量修改日期
export const batchUpdDetectDate  = params =>{ return ajax.postData({url:`${base}api/toolX/batchUpdateDate.do?`, params}); };
// 
export const getNextDetectDate  = params =>{ return axios.post(`${base}api/toolX/getNextDetectDate.do`, params); };

